<?php include_once("../../../common/common_setting_unit.php");         // 引入通用的设置文件 ?>
<?php include_once(ROOT_PATH_ . "/controller/common/module/head.php"); // 引入通用的头部 ?>
<?php include_once("../controller/data_list.php");   ?>

<?php include_once($_SERVER['DOCUMENT_ROOT']."/controller/common/script/site-function.php"); ?>
<?php include_once("detail-function.php"); ?>

<body>

<!--顶部栏-->
<div id="topbar"> <?php include ROOT_PATH_ . '/controller/common/module/topbar.php'; ?></div>

<!--容器-->
<div id="container" class="<? echo $now_extender ?>">

    <!--侧边栏-->
    <div id="sidebar"><?php include ROOT_PATH_ . '/controller/common/module/sidebar.php'; ?></div>





    <?
    //==============================================================================
    //这里开始才是平常开发需要注重的部分，其余的基本不用理会
    //==============================================================================
    ?>


    <div id="content" class="layui-form">

        <!--标题设定-->
        <?php $page_title= '添加友情链接';?>
        <?php include ROOT_PATH_ . '/controller/common/module/mod-page-title.php'; ?>

    <div class="detail-box">

        <div class="detail-boxes layui-form ">
            <ul class="detail-boxing">
                <form id="detail_detail_form" class="layui-form-pane" method="post" onsubmit="return checkRequired(detail_name);" action="detail-add-function.php"
                      enctype="multipart/form-data" name="uploadfile">


                    <li class="layui-form-item name"><label class="layui-form-label">友链名称：</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="ai_webname" size="20" value=""></div>
                        <em class="explain">(<u
                                style="color:red">*必填项目</u>,
                            友情链接的网站名称)
                        </em>
                    </li>

                    <li class="layui-form-item link">
                        <label class="layui-form-label">链接地址：</label>
                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="ai_weblink" size="20" value=""></div>
                        <em class="explain">(友情链接的网站地址)</em>
                    </li>

                    <li class="icon">
                        <label class="layui-form-label">ICON：</label>
                        <img src="/controller/common/asset/image/default-image.jpg" width="100"/>
                    </li>


                    <li  class="icon">
                        <label class="layui-form-label">上传文件：</label>
                        <div class="layui-input-block">
                            <input type="file" name="icon" onchange="fileChange(this);"/>
                        </div>
                        <em class="explain">(友情链接的网站图标)</em>
                    </li>


                    <li class="layui-form-item output">
                        <label class="layui-form-label">权重输出：</label>
                    	<div class="layui-input-block">
                        <select name="ai_follow" style="width: auto;">
                            <option value="0">是</option>
                            <option value="1">否</option>
                        </select>
                        </div>
                        <em class="explain">(是否允许搜索引擎通过友情链接跳转到友情网站)</em>
                    </li>


                    <li class="layui-form-item listorder">
                        <label class="layui-form-label">列表排序：</label>

                        <div class="layui-input-block">
                            <input type="text" class="layui-input" name="ai_listorder" size="20"
                                              onkeydown="onlyNum();" onfocus="checkdefault(detail_listorder)"
                                              onblur="checkempty(detail_listorder)"></div>
                        <em class="explain">(填写本文在所属前台列表下的列表排序，数字越大，排序越靠前)</em>
                    </li>

                    <li class="layui-form-item publish">
                        <label class="layui-form-label">发布状态：</label>
                        <div class="layui-input-block">
                            <input name='ai_publish' type='radio' value='1'  title="立即发布"  checked/>
                            <input name='ai_publish' type='radio' value='0'  title="暂未发布" />
                        </div>
                        <em class="explain">(选择立即发布，以上信息才能在前台显示；选择暂未发布，只对以上信息进行保存，不在前台显示)</em> </li>

                    <div class="function">
                        <input class="layui-btn" type="submit" value="确认"/>
                        <input class="layui-btn" type="button" value="取消"/>
                    </div>
                </form>
            </ul>
        </div>
    </div>

    <!--content端點01-->
</div>
<!--maincontent端點01-->
<br class="clearfloat"/>
</div>
<!--container端點01-->
</div>
<!--底部栏-->
<?php include ROOT_PATH_ . "/controller/common/module/footer.php"; ?>


</body>
</html>
